package com.haojiang.mh.widget.popup

import android.content.Context
import android.view.View
import android.view.animation.Animation
import com.haojiang.mh.R
import razerdp.basepopup.BasePopupWindow

/**
 * 床的状态弹窗
 */
class BedStatusPopup(context: Context) : BasePopupWindow(context) {
    override fun onCreateContentView(): View {
        return createPopupById(R.layout.layout_popup_bed_status)
    }

    override fun onCreateShowAnimation(): Animation {
        return getTranslateVerticalAnimation(-1.0f, 0.0f, 280)
    }

    override fun onCreateDismissAnimation(): Animation {
        return getTranslateVerticalAnimation(0.0f, -1.0f, 280)
    }
}